﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace M3G {
    public  class TextureCube : Texture
    {


        #region Method
        public TextureCube (ImageCube image) :base(image) {
        }

        protected TextureCube (TextureCube textureCube)
            : base (textureCube) {
        }

        public ImageCube Image {
            get { 
                return ImageBase as ImageCube;
            }
        }

        public void SetImage (ImageCube image) {
            if (image == null) {
                throw new ArgumentNullException ("Image is null");
            }

            base.SetImageBase (image);
        }

        public override Object3D Duplicate () {
            return new TextureCube (this);
        }
        #endregion
    }
}
